import Vue from 'vue'
import 'element-ui/lib/theme-chalk/index.css'

import App from './App.vue'
import router from './router'
import store from './store'
import './mock/mock'
import Element from 'element-ui'
Vue.use(Element, { size: 'mini' })
import 'element-ui/lib/theme-chalk/index.css'
import './mock/mock.js'
   // 首先引入element-ui中文包
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'

// 然后将element-ui中pagination选项改掉
zhLocale.el.pagination = {
  pagesize: '条/页',
  total: `共 {total} 条`,
  goto: '跳转至',
  pageClassifier: '页'
}

Vue.config.productionTip = false


new Vue({
  router,
  store,
  beforeCreate(){

    Vue.prototype.$bus = this
  },
  render: h => h(App)
}).$mount('#app')
